package com.fenyin.samples.study.parttern.struct.decorate.example1;  

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 *@Title: 装饰模式
 *<p>OrderLine：数据模型</p>  
 *@Author:fengzhichao  
 *@Since:2012-9-29  
 *@Version:1.1.0
 */
public class OrderLine {
	
	private static final Log log = LogFactory.getLog(OrderLine.class);
	
	private String productName;
	private int prdouctNum;
	
	public OrderLine(String productName,int productNum){
		this.productName = productName;
		this.prdouctNum = productNum;
	}
	
	public void printLine(){
		StringBuffer data = new StringBuffer();
		data.append("productName:").append(productName);
		data.append("prdouctNum:").append(prdouctNum);
		System.out.println(data.toString());
	}
}
